const express = require("express");

const router = express.Router();

//引入上传文件中间件
const { uploads } = require("../middleware/multer")

//增加职位接口 /positions/add  method:post
const { addCtr, getlistCtr, delCtr, updateCtr } = require("../constroller/positionsConstroller")

router.post("/add", uploads, addCtr)

//获取职位列表
router.get("/getlist", getlistCtr)

//删除职位
router.get("/del", delCtr)

//更新接口
router.post("/update", updateCtr)

module.exports = router